package model

import (
	"gorm.io/gorm"
	"time"
)

//后台管理员登录日志

type AuthLoginLog struct {
	gorm.Model
	Scene   uint   `form:"scene" json:"scene" gorm:"type:tinyint(3) not null;default:1;comment:场景0 不明 1登录 2 操作 3删除 4 修改 "`
	Account string `form:"account" json:"account" binding:"required" gorm:"type:varchar(100) not null;comment:post的登录账号"`
	//Password    string    `form:"password" json:"password" gorm:"type:varchar(255) not null;comment:post的密码 sha1加密"`
	//Captcha     string    `form:"captcha" json:"captcha" gorm:"size:10 not null;comment:post的验证码"`
	Msg         string    `form:"msg" json:"msg" gorm:"type:text;comment:错误信息"`
	RequestIpv4 string    `form:"request_ipv4" json:"request_ipv4" gorm:"size:15;comment:请求的ipv4"`
	RequestIpv6 string    `form:"request_ipv6" json:"request_ipv6" gorm:"size:15;comment:请求的ipv6"`
	RequestTime time.Time `form:"request_time" json:"request_time" gorm:"comment:请求的时间"`
}
